math function rand

The rand() function returns a random number between [0,1). Depending on the machine on which it is compiled, it might use the extended 48 bits random number generator or less.